package org.aepscolombia.platform.models.entity;
// Generated Jan 13, 2014 2:36:33 PM by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * TargetsTypes generated by hbm2java
 */
@Entity
@Table(name="targets_types"
    ,catalog="madr_bd10"
)
public class TargetsTypes  implements java.io.Serializable {


     private Integer idTarTyp;
     private String nameTarTyp;
     private Boolean statusTarTyp;
     private Set organicControlses = new HashSet(0);
     private Set chemicalsControlses = new HashSet(0);
     private Set controlses = new HashSet(0);

    public TargetsTypes() {
    }

	
    public TargetsTypes(String nameTarTyp) {
        this.nameTarTyp = nameTarTyp;
    }
    public TargetsTypes(String nameTarTyp, Boolean statusTarTyp, Set organicControlses, Set chemicalsControlses, Set controlses) {
       this.nameTarTyp = nameTarTyp;
       this.statusTarTyp = statusTarTyp;
       this.organicControlses = organicControlses;
       this.chemicalsControlses = chemicalsControlses;
       this.controlses = controlses;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id_tar_typ", unique=true, nullable=false)
    public Integer getIdTarTyp() {
        return this.idTarTyp;
    }
    
    public void setIdTarTyp(Integer idTarTyp) {
        this.idTarTyp = idTarTyp;
    }
    
    @Column(name="name_tar_typ", nullable=false, length=45)
    public String getNameTarTyp() {
        return this.nameTarTyp;
    }
    
    public void setNameTarTyp(String nameTarTyp) {
        this.nameTarTyp = nameTarTyp;
    }
    
    @Column(name="status_tar_typ")
    public Boolean getStatusTarTyp() {
        return this.statusTarTyp;
    }
    
    public void setStatusTarTyp(Boolean statusTarTyp) {
        this.statusTarTyp = statusTarTyp;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="targetsTypes")
    public Set getOrganicControlses() {
        return this.organicControlses;
    }
    
    public void setOrganicControlses(Set organicControlses) {
        this.organicControlses = organicControlses;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="targetsTypes")
    public Set getChemicalsControlses() {
        return this.chemicalsControlses;
    }
    
    public void setChemicalsControlses(Set chemicalsControlses) {
        this.chemicalsControlses = chemicalsControlses;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="targetsTypes")
    public Set getControlses() {
        return this.controlses;
    }
    
    public void setControlses(Set controlses) {
        this.controlses = controlses;
    }




}


